$(document).ready(function() { 
	$('ul.menu').superfish({ 
		delay:       600,                            // one second delay on mouseout 
		animation:   {height:'show'},  // fade-in and slide-down animation 
		speed:       'normal',                          // faster animation speed 
		autoArrows:  false,                           // disable generation of arrow mark-up 
		dropShadows: false                            // disable drop shadows 
	});
	
	$("#blok-top").hide();
	 $(window).scroll(function () {
		if ($(this).scrollTop() > 400) {
				$('#blok-top').fadeIn();
			} else {
				$('#blok-top').fadeOut();
			}
		});
 
		$('#blok-top .top').click(function () {
			$('body,html').stop().animate({
				scrollTop: 0
			}, 300);
			return false;
		});
	

	 $('.list-services li a').hover(function(){
	   $(this).stop(true,false).animate({color:"#fff"}, {duration: 300});
	  },function(){
	   $(this).stop(true,false).animate({color:"#bebdbd"}, {duration: 300});
	 }); 
	$('.list-1 li a ').not('.active')
	.hover(function(){
		$(this).find('span')
		.stop().animate({width:'100%', left:'0'}, {duration:200})
	}, function(){
		$(this).find('span')
		.stop().animate({width:'0', left:'50%'}, {duration:200})
	})
		$('.footer-link1')
	.hover(function(){
		$(this).find('span')
		.stop().animate({width:'100%', left:'0'}, {duration:200})
	}, function(){
		$(this).find('span')
		.stop().animate({width:'0', left:'50%'}, {duration:200})
	})
	
	 $('.link-4').hover(function(){
	   $(this).stop(true,false).animate({color:"#3CB3E7"}, {duration: 300});
	  },function(){
	   $(this).stop(true,false).animate({color:"#F3F3F3"}, {duration: 300});
	 });
	 
	 $('.link-1').hover(function(){
	   $(this).stop(true,false).animate({color:"#FF6C13"}, {duration: 300});
	  },function(){
	   $(this).stop(true,false).animate({color:"#2FAEE6"}, {duration: 300});
	 });
	/*************** tooltips  ****************/
	/* $(".list-services a.tooltips").easyTooltip(); */
	
	/*************** newsletter form  ****************/
	
	/* $('.newsletter-button').hover(function(){
	   $(this).stop(true,false).animate({backgroundColor:"#E6B713"}, {duration: 350});
	  },function(){
	   $(this).stop(true,false).animate({backgroundColor:"#474234"}, {duration: 350});
	 }); */
	
	/*************** list-1 ****************/
	
	/* $('.list-1 li a').hover(function(){
	   $(this).stop(true,false).animate({color:"#424242"}, {duration: 250});
	  },function(){
	   $(this).stop(true,false).animate({color:"#A5C720"}, {duration: 250});
	 }); */
	
	/*************** list-2 ****************/
	
	/* $('.list-2 li a').hover(function(){
	   $(this).stop(true,false).animate({color:"#E6B713"}, {duration: 250});
	  },function(){
	   $(this).stop(true,false).animate({color:"#474234"}, {duration: 250});
	 }); */
	
	/*************** menu animate ****************/
	
	/* $('.menu > li > span').css({opacity: 0});
	$('.menu > li.active > span').css({opacity: 1});  // span active	
	$('.menu > li').not('.active')
		.hover(function(){
			$(this).find('>span').stop()
			.css({opacity:0})
			.animate({opacity:1},250) // span opacity hover
		},
		function(){
			$(this).not('.sfHover')
			.find('>span').stop().animate({opacity:0}, {duration:250})
	});
	
	
	$('.menu > li > a').css( {backgroundPosition: "-15px -110px"} );
	$('.menu > li.active > a').css( {backgroundPosition: "15px -110px"} );  // li a active
	
	$('.menu > li').not('.active')
		.hover(function(){
			$(this).find('>a').stop()
			.css({backgroundPosition: "-15px -110px"})
			.animate({backgroundPosition:"15px -110px"},250) // li a opacity hover
		},
		function(){
			$(this).not('.sfHover')
			.find('>a').stop().animate({backgroundPosition:"-15px -110px"},250)}); */
	
}); 